package com.cfl.ticket.service;

import java.util.ArrayList;

import com.cfl.model.City;

public interface CityService {

	/**
	 * 通过名称获取城市
	 * @param name	城市名称
	 * @return
	 * @throws Exception
	 */
	public City findCityByName(String name) throws Exception;
	
	/**
	 * 通过cid获取城市
	 * @param cid
	 * @return
	 * @throws Exception
	 */
	public City findCityByCid(String cid) throws Exception;
	
	/**
	 * 获取所有城市
	 * @return
	 * @throws Exception
	 */
	public ArrayList<City> findCityByAll() throws Exception;
}
